/*
 * 
 * Created on Jul 18, 2005
 */
package com.wgo.bpot.common.transport.exception.db;


/**
 * 
 * @author Petter L. H. Eide
 * @version $Id: DatabaseException.java,v 1.1 2006-01-23 09:27:22 petterei Exp $
 * 
 * Changelog:
 * 
 * $Log: DatabaseException.java,v $
 * Revision 1.1  2006-01-23 09:27:22  petterei
 * initial commit of alternative session implementation
 *
 * Revision 1.4  2005-12-16 18:08:25  petterei
 * *** empty log message ***
 *
 * Revision 1.3  2005-12-16 17:41:46  petterei
 * updated exceptions and added possible exception thrown to method-declaration
 *
 * Revision 1.2  2005-12-04 19:59:12  petterei
 * *** empty log message ***
 *
 * Revision 1.1  2005/08/25 07:18:09  peide3
 * more domainspesific exceptions known to both client and server
 *
 * Revision 1.1  2005/07/20 06:15:15  peide3
 * more exceptions from server to user
 *
 *
 */
public class DatabaseException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    private static final String META = "Server database-error";

    public DatabaseException() {
        super();
    }

    /**
     * @param message
     */
    public DatabaseException(String message) {
        super(META + ": "  + message);
    }

    public DatabaseException(Exception e) {
        super(META, e);
    }
    
    public DatabaseException(String message, Throwable e) {
        super(META + ": " + message, e);
    }

	public DatabaseException(Throwable cause) {
		super(cause);
		// TODO Auto-generated constructor stub
	}
    
    
}
